⛔ Terminate
The Terminate action is used to stop the workflow execution immediately with a specified status, code, and message. It is commonly used to handle error situations or to explicitly end a workflow.
Configuration
- Status: Select the termination status. Common options include:
- Succeeded
- Failed
- Cancelled
- Code: Enter an error or termination code to provide context for the termination.
- Message: Enter a descriptive error message or explanation for why the workflow is being terminated.
Features
- Immediately stops workflow execution.
- Allows specifying detailed termination status.
- Supports providing error codes and messages for clarity.
- Useful for error handling and controlled workflow endings.
Use Cases
- Stop a workflow when a critical error occurs.
- Terminate a workflow with a failure status after validation fails.
- Cancel workflows explicitly based on certain conditions.
- Provide meaningful error codes and messages for debugging.
Notes
- Use termination thoughtfully to avoid unexpected workflow halts.
- Ensure error codes and messages are descriptive for easier troubleshooting.
- Terminate action ends all subsequent workflow steps.
Tip: Combine Terminate with conditional logic to gracefully handle errors and exit points in your workflows.